import java.util.HashMap;


public class Laendercodes {
	
	public static final HashMap<Character, Integer> LAENDERCODES = new HashMap<Character, Integer>();
	
	static{
		int code = 10;
		for(char c = 'A'; c <= 'Z'; c++){
			LAENDERCODES.put(c, code);
			code++;
		}
	}

	public static String getLandCode(String code){
		if(code.length() != 2) throw new IllegalArgumentException("Das ist kein Laenderocde ;-(");
		String landcode = "";
		for(char c : code.toUpperCase().toCharArray()){
			landcode += String.valueOf(LAENDERCODES.get(c));
		}
		return landcode;
	}
	
}
